import request from '@/utils/request';
// 卡发行记录
export function getCouponLogList(data) {
  return request({
    url: '/ssystem-api/api/coupon/getCouponLogList',
    method: 'post',
    data: data,
  });
}

// 卡列表
export function getCouponList(data) {
  return request({
    url: '/ssystem-api/api/coupon/getCouponList',
    method: 'post',
    data: data,
  });
}

// 发行卡
export function pullCoupon(data) {
  return request({
    url: '/ssystem-api/api/coupon/pullCoupon',
    method: 'post',
    data: data,
  });
}

// 获取卡信息
export function getCouponData(data) {
  return request({
    url: '/ssystem-api/api/coupon/getCouponData',
    method: 'post',
    data: data,
  });
}

// 卡列表导出
export function couponExport(data) {
  return request({
    url: '/ssystem-api/api/coupon/couponExport',
    method: 'post',
    data: data,
  });
}

// 下载卡密  只传id
export function couponExportPass(data) {
  return request({
    url: '/ssystem-api/api/coupon/couponExportPass',
    method: 'post',
    data: data,
  });
}

// 发卡记录导出
export function couponSendExport(data) {
  return request({
    url: '/ssystem-api/api/coupon/couponSendExport',
    method: 'post',
    data: data,
  });
}
